//
//  BaseNavigationController.swift
//  SKClock
//
//  Created by Sky-work on 2021/12/23.
//

import UIKit

class BaseNavigationController : UINavigationController {
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        view.backgroundColor = UIColor.red
    }
    
    override func pushViewController(_ viewController: UIViewController, animated: Bool) {
        hidesBottomBarWhenPushed = viewControllers.count > 0
        
        super.pushViewController(viewController, animated: animated)
    }
}



